<!--  -->
<template>
  <div>
    <el-card class="box-card" style="margin-top: 15px">
      <div slot="header" class="clearfix">
        <el-tabs>
          <el-tab-pane label="销售额" name="first">
            <div>
              <SaleCharts></SaleCharts>
            </div>
          </el-tab-pane>
          <el-tab-pane label="访问量" name="second">
            <div class="father">
              <span class="item"></span>
              <span class="item"></span>
              <span class="item"></span>
            </div>
            <div class="ali">
              <span class="center">center</span>
            </div>
          </el-tab-pane>
        </el-tabs>
      </div>
    </el-card>
  </div>
</template>

<script>
import SaleCharts from '../SaleCharts.vue'
export default {
  name: 'Sale',
  data() {
    return {}
  },
  components: {
    SaleCharts,
  },
}
</script>
<style lang='scss' scoped>
.father {
  border: 20px solid #eee;
  border-radius: 20%;
  width: 300px;
  height: 300px;
  display: flex;
  justify-content: space-between;
  padding: 20px;
}
.item {
  display: block;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  background-color: rgb(51, 50, 50);
}
.item:nth-child(2) {
  align-self: center;
}
.item:nth-child(3) {
  align-self: flex-end;
}
.ali{
  border: 1px solid #000;
  width: 300px;
  height: 100px;
  position: relative;
}
.center{
  position: absolute;
  display: block;
  width: 50px;
  height: 30px;
  top: 50%;
  margin-top: -15px;
  text-align: center;
  background-color: orange;
}
</style>